using System.Reflection;

namespace Kopernikus.Parsing.GenericActions
{
    internal class ReflectedSemanticActionWithNoParameters<TParser, S> : ReflectedSemanticAction<TParser, S>
    {
        private static readonly object[] EmptyParameters = new object[0];

        public ReflectedSemanticActionWithNoParameters(MethodInfo method) : base(method)
        {
        }

        protected override object[] MakeArgumentArray(S[] args)
        {
            return EmptyParameters;
        }
    }
}